package com.fang.networkdisk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fang.networkdisk.entity.bo.PermissionBo;
import com.fang.networkdisk.entity.po.TbNetDisPermission;
import com.fang.networkdisk.entity.vo.PermissionVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 权限表 Mapper 接口
 * </p>
 *
 * @author Bernie_fang
 * @since 2024-12-07
 */
public interface TbNetDisPermissionMapper extends BaseMapper<TbNetDisPermission> {

    List<PermissionVo> queryPermission(@Param("permissionBo") PermissionBo permissionBo);

    int queryPermissionCount(@Param("permissionBo") PermissionBo permissionBo);

    int deletePermissionsById(@Param("id") Integer id, @Param("authorId") String authorId, @Param("date") Date date);
}
